/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.springboot.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @desc:
 * @author: shollin
 * @date: 2021/6/15/015 19:48
 */
@Data
public class Db {
    private String driver;
    private Integer port;

    @NotBlank(message = "主机host不能为空")
    private String host;

    @NotBlank(message = "数据库名不能为空")
    private String dbname;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;
}
